package edu.umn.se.trap;

public class Transportation {

    private int id;
    private double amount, miles;
    private boolean rental;
    private String type, currency, carrier, date;
    
    public Transportation() 
    {
        id = 0;
        date = "";
        amount = 0;
        miles = 0;
        rental = false;
        type = "";
        currency = "";
        carrier = "";
    }
    /**
     * Constructor for transportation
     * @param idNum id number of transportation
     * @param d date of transportation
     * @param am amount paid for transportation
     * @param mi miles traveled in personal car
     * @param rent charged for rental
     * @param cur currency paid for transportation
     * @param ty type of transportation
     * @param carr name of carrier of transportation
     */
    public Transportation(int idNum, String d, double am, double mi, boolean rent, String cur, String ty, String carr) 
    {
        id = idNum;
        date = d;
        amount = am;
        miles = mi;
        type = ty;
        currency = cur;
        rental = rent;
        carrier = carr;
    }
    /**
     * Get id number
     * @return id
     */
    public int getId()
    {
        return id;
    }
    /**
     * Get date of transportation
     * @return date
     */
    public String getDate()
    {
        return date;
    }
    /**
     * Get amount paid of transportation
     * @return amount
     */
    public double getAmount()
    {
        return amount;
    }
    /**
     * Get miles traveled of transportation
     * @return miles
     */
    public double getMiles()
    {
        return miles;
    }
    /**
     * Get type of transportation
     * @return type
     */
    public String getType()
    {
        return type;
    }
    /**
     * Get currency paid of transportation
     * @return currency
     */
    public String getCurrency()
    {
        return currency;
    }
    /**
     * Get rental of transportation
     * @return rental
     */
    public boolean getRental()
    {
        return rental;
    }
    /**
     * Get name of carrier of transportation
     * @return carrier
     */
    public String getCarrier()
    {
        return carrier;
    }
}